package cn.yangliu.nacos.management.entity.sys;

import javax.persistence.Entity;
import javax.persistence.Table;

import cn.yangliu.nacos.comm.audit.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
@Entity
@Table(name = "cm_authority")
@Data
public class Authority extends AbstractEntity {

    /**
     * current class instance's member.
     * The Name.
     */
    @ApiModelProperty(value = "资源名称")
    private String name;

    /**
     * current class instance's member.
     * The Authority.
     */
    @ApiModelProperty(value = "权限标识符")
    private String authority;

    /**
     * current class instance's member.
     * The Sort no.
     */
    @ApiModelProperty(value = "排序号",example = "0")
    private Integer sortNo;

    /**
     * current class instance's member.
     * The Button.
     */
    @ApiModelProperty(value = "是否是按钮", example = "true")
    private Boolean button;

    /**
     * current class instance's member.
     * The Parent id.
     */
    @ApiModelProperty(value = "父资源Id", example = "1")
    private Long parentId;

}
